package com.qf.day04;

import java.util.Scanner;

public class Demo04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] nameArr = new String[5];
        for (int i = 0; i < 5; i++) {
            System.out.println("请输入名字:");
            String name = sc.next();
            //把名字放入数组中
            nameArr[i] = name;
        }
    }
}
